<template>
	<view class="search-box">
		<view class="search" @click="toSearch">
			<view class="box">
				<icon class="icon" type="search"></icon>
				<text class="txt">搜索</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		methods:{
			toSearch(){
				uni.navigateTo({
					url:'/pages/search/search'
				})
			}
		}
	}
</script>

<style lang="less">
	.search-box{
		position: fixed;
		left: 0;
		top: 0;
		z-index: 999;
		width: 100%;
		height: 100rpx;
		padding: 20rpx 16rpx;
		box-sizing: border-box;
		background-color: #eb4450;
		text-align: center;
		display: flex;
		align-items: center;
		.search{
			background-color: #ffffff;
			width: 100%;
			height: 60rpx;
			line-height: 60rpx;
			border-radius: 8rpx;
			text-align: center;
			color: #bbb;
			.box{
				width: 130rpx;
				height: 60rpx;
				display: flex;
				margin: 0 auto;
			}
			.icon{
				margin-right: 16rpx;
				margin-top: 10rpx;
			}
		}
	}
</style>
